using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yitter.IdGenerator;

namespace RBAC_Model
{
    public class RolePermission:BaseEntity
    {
        /// <summary>
        /// 角色权限ID
        ///// </summary>
        //[Key]
        //[DatabaseGenerated(DatabaseGeneratedOption.None)]
        //public long Id { get; set; } = YitIdHelper.NextId();
        /// <summary>
        /// 角色ID
        /// </summary>
        public long RoleId { get; set; }
        /// <summary>
        /// 权限ID
        /// </summary>
        public long PermissionId { get; set; }
    }
} 